package com.qn.combination.core.context;

import com.only4play.order.commons.constants.BizEnum;
import com.only4play.order.commons.filters.selector.FilterSelector;

/**
 * 抽象事件上下文
 *
 * @author quning
 * @date 2023/11/04
 */
public abstract class AbstractEventContext implements EventContext{

  private final BizEnum bizEnum;
  private final FilterSelector selector;

  public AbstractEventContext(BizEnum bizEnum, FilterSelector selector) {
    this.bizEnum = bizEnum;
    this.selector = selector;
  }

  @Override
  public BizEnum getBizCode() {
    return bizEnum;
  }

  @Override
  public FilterSelector getFilterSelector() {
    return selector;
  }
}
